#include "Joystick.h"
#include <memory>

CJoystick::CJoystick(unsigned int id) : _id(id)
{
	for (unsigned int i = 0; i < sf::Joystick::ButtonCount; i++)
	{
		_buttons[i] = false;
		_lastButtons[i] = false;
	}
}

CJoystick::~CJoystick(void){}


void CJoystick::update()
{
	memcpy(_lastButtons, _buttons, sizeof(bool) * sf::Joystick::ButtonCount);
}